package qatool

import cn.qs.qatool.ItemType
import cn.qs.qatool.User

class BootStrap {

    def init = { servletContext ->
        def admin = User.findByUsername("admin") ?: new User(username: "admin",password: "123456").save()
        def numberItemType = ItemType.findByName("数值") ?: new ItemType(name: "数值").save()

    }
    def destroy = {
    }
}
